package com.woniu.product.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniu.product.infra.model.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.product.service.dto.CategoryDto;
import com.woniu.product.service.form.AddCategoryForm;
import com.woniu.result.Result;

import java.util.List;

/**
 * <p>
 * 商品类别 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface CategoryService extends IService<Category> {

    Result addCategory(AddCategoryForm addCategoryForm);

    Result deleteCategory(Integer categoryId);

    List<CategoryDto> selCategory() throws JsonProcessingException;
}
